package router

import (
	"github.com/gin-gonic/gin"
	"mxshop_api/user-web/api"
	"mxshop_api/user-web/middlewares"
)

func InitUserRouter(router *gin.RouterGroup) {
	router.GET("list", middlewares.JWTAuth(), middlewares.IsAdminAuth(), api.GetUserList)
	router.POST("pwd_Login", api.PasswordLogin)
	router.POST("register", api.Register)

}
